import request from '@/utils/request'
export function listAllRoomType() {
  return request({
    url: '/roomType/listAllRoomType',
    method: 'get'
  })
}

// 分页查询
export function listroomTypeByPage(data) {
  return request({
    url: '/roomType/page',
    method: 'get',
    params: data
  })
}

// 删除产品
export function delroomType(typeId) {
  return request({
    url: '/roomType/' + typeId,
    method: 'delete'
  })
}

// 查询产品详细
export function getroomType(typeId) {
  return request({
    url: '/roomType/' + typeId,
    method: 'get'
  })
}

// 新增产品
export function addroomType(data) {
  return request({
    url: '/roomType',
    method: 'post',
    data: data
  })
}

// 修改产品
export function updateroomType(data) {
  return request({
    url: '/roomType',
    method: 'put',
    data: data
  })
}

// 修改房型状态
export function changeTypeStatus(data) {
  return request({
    url: '/roomType/changeStatus',
    method: 'get',
    params: data
  })
}
